package com.solomiao.demo.multi.thread.demo11;

/**
 * @desc 死锁的演示案例
 * */
public class MainDemo11 {

    public static String pen = "pen";
    public static String paper = "paper";

    public static void main(String[] args) {
        DeadLockRunnableDemo1 deadLockRunnableDemo1 = new DeadLockRunnableDemo1();
        DeadLockRunnableDemo2 deadLockRunnableDemo2 = new DeadLockRunnableDemo2();
        Thread t1 = new Thread(deadLockRunnableDemo1);
        Thread t2 = new Thread(deadLockRunnableDemo2);
        t1.start();
        t2.start();
    }

}
